<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: ActiveScaffold::DataStructures::ActionLink</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">ActiveScaffold::DataStructures::ActionLink</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/plugins/active_scaffold/lib/data_structures/action_link_rb.html">
                vendor/plugins/active_scaffold/lib/data_structures/action_link.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="../../Object.html">
                Object
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000420">confirm</a>&nbsp;&nbsp;
      <a href="#M000421">confirm?</a>&nbsp;&nbsp;
      <a href="#M000422">dhtml_confirm</a>&nbsp;&nbsp;
      <a href="#M000423">dhtml_confirm?</a>&nbsp;&nbsp;
      <a href="#M000425">inline=</a>&nbsp;&nbsp;
      <a href="#M000426">inline?</a>&nbsp;&nbsp;
      <a href="#M000419">label</a>&nbsp;&nbsp;
      <a href="#M000418">new</a>&nbsp;&nbsp;
      <a href="#M000429">page=</a>&nbsp;&nbsp;
      <a href="#M000430">page?</a>&nbsp;&nbsp;
      <a href="#M000427">popup=</a>&nbsp;&nbsp;
      <a href="#M000428">popup?</a>&nbsp;&nbsp;
      <a href="#M000431">position</a>&nbsp;&nbsp;
      <a href="#M000424">security_method</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





    <div id="attribute-list">
      <h3 class="section-bar">Attributes</h3>

      <div class="name-list">
        <table>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">action</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
the action-path for this link. what page to request? this is required!

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">confirm</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
if the action requires confirmation

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">controller</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
the controller for this action link. if nil, the current controller should
be assumed.

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">crud_type</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
the crud type of the (eventual?) action. different than :method, because
this crud action may not be imminent. this is used to determine
record-level authorization (e.g. record.authorized_for?(:action =&gt;
link.crud_type). options are :create, :read, :update, and :destroy

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">dhtml_confirm</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
if the action uses a DHTML based (i.e. 2-phase) confirmation

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">label</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
what string to use to represent this action

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">method</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
the RESTful method

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">parameters</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
a hash of request parameters

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">position</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
where the result of this action should insert in the display. for :type
=&gt; :table, supported values are:

<pre>
  :top
  :bottom
  :replace (for updating the entire table)
  false (no attempt at positioning)
</pre>
<p>
for :type =&gt; :record, supported values are:
</p>
<pre>
  :before
  :replace
  :after
  false (no attempt at positioning)
</pre>
</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">security_method</td>
          <td class="context-item-value">&nbsp;[W]&nbsp;</td>
          <td class="context-item-desc">
what method to call on the controller to see if this action_link should be
visible note that this is only the UI part of the security. to prevent URL
hax0rz, you also need security on requests (e.g. don&#8216;t execute update
method unless authorized).

</td>
        </tr>
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">type</td>
          <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
          <td class="context-item-desc">
what type of link this is. currently supported values are :table and
:record.

</td>
        </tr>
        </table>
      </div>
    </div>
      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000418" class="method-detail">
        <a name="M000418"></a>

        <div class="method-heading">
          <a href="#M000418" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(action, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
provides a quick way to set any property of the object from a hash
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000418-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000418-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 4</span>
 4:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">action</span>, <span class="ruby-identifier">options</span> = {})
 5:       <span class="ruby-comment cmt"># set defaults</span>
 6:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">action</span> = <span class="ruby-identifier">action</span>.<span class="ruby-identifier">to_s</span>
 7:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">label</span> = <span class="ruby-identifier">action</span>.<span class="ruby-identifier">to_s</span>
 8:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">confirm</span> = <span class="ruby-keyword kw">false</span>
 9:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span> = <span class="ruby-identifier">:table</span>
10:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inline</span> = <span class="ruby-keyword kw">true</span>
11:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method</span> = <span class="ruby-identifier">:get</span>
12:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">crud_type</span> = <span class="ruby-identifier">:destroy</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">:destroy</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">action</span>.<span class="ruby-identifier">to_sym</span>)
13:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">crud_type</span> = <span class="ruby-identifier">:create</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">:create</span>, <span class="ruby-identifier">:new</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">action</span>.<span class="ruby-identifier">to_sym</span>)
14:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">crud_type</span> = <span class="ruby-identifier">:update</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">:edit</span>, <span class="ruby-identifier">:update</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">action</span>.<span class="ruby-identifier">to_sym</span>)
15:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">crud_type</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">:read</span>
16: 
17:       <span class="ruby-comment cmt"># apply quick properties</span>
18:       <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
19:         <span class="ruby-identifier">setter</span> = <span class="ruby-node">&quot;#{k}=&quot;</span>
20:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">setter</span>, <span class="ruby-identifier">v</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">setter</span>
21:       <span class="ruby-keyword kw">end</span>
22:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000420" class="method-detail">
        <a name="M000420"></a>

        <div class="method-heading">
          <a href="#M000420" class="method-signature">
          <span class="method-name">confirm</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000420-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000420-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 44</span>
44:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">confirm</span>
45:       <span class="ruby-ivar">@confirm</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">as_</span>(<span class="ruby-ivar">@confirm</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@confirm</span>
46:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000421" class="method-detail">
        <a name="M000421"></a>

        <div class="method-heading">
          <a href="#M000421" class="method-signature">
          <span class="method-name">confirm?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000421-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000421-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 47</span>
47:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">confirm?</span>
48:       <span class="ruby-ivar">@confirm</span> <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>
49:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000422" class="method-detail">
        <a name="M000422"></a>

        <div class="method-heading">
          <a href="#M000422" class="method-signature">
          <span class="method-name">dhtml_confirm</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000422-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000422-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 53</span>
53:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dhtml_confirm</span>
54:       <span class="ruby-ivar">@dhtml_confirm</span>
55:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000423" class="method-detail">
        <a name="M000423"></a>

        <div class="method-heading">
          <a href="#M000423" class="method-signature">
          <span class="method-name">dhtml_confirm?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000423-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000423-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 56</span>
56:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dhtml_confirm?</span>
57:       <span class="ruby-ivar">@dhtml_confirm</span>
58:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000425" class="method-detail">
        <a name="M000425"></a>

        <div class="method-heading">
          <a href="#M000425" class="method-signature">
          <span class="method-name">inline=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
an &quot;inline&quot; link is inserted into the existing page exclusive
with <a href="ActionLink.html#M000428">popup?</a> and <a
href="ActionLink.html#M000430">page?</a>
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000425-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000425-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 74</span>
74:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inline=</span>(<span class="ruby-identifier">val</span>)
75:       <span class="ruby-ivar">@inline</span> = (<span class="ruby-identifier">val</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>)
76:       <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">popup</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@inline</span>
77:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000426" class="method-detail">
        <a name="M000426"></a>

        <div class="method-heading">
          <a href="#M000426" class="method-signature">
          <span class="method-name">inline?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000426-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000426-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 78</span>
78:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inline?</span>; <span class="ruby-ivar">@inline</span> <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000419" class="method-detail">
        <a name="M000419"></a>

        <div class="method-heading">
          <a href="#M000419" class="method-signature">
          <span class="method-name">label</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000419-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000419-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 38</span>
38:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">label</span>
39:       <span class="ruby-identifier">as_</span>(<span class="ruby-ivar">@label</span>)
40:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000429" class="method-detail">
        <a name="M000429"></a>

        <div class="method-heading">
          <a href="#M000429" class="method-signature">
          <span class="method-name">page=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
a &quot;page&quot; link displays by reloading the current page exclusive
with <a href="ActionLink.html#M000426">inline?</a> and <a
href="ActionLink.html#M000428">popup?</a>
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000429-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000429-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 96</span>
 96:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page=</span>(<span class="ruby-identifier">val</span>)
 97:       <span class="ruby-ivar">@page</span> = (<span class="ruby-identifier">val</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>)
 98:       <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@page</span>
 99:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inline</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">popup</span> = <span class="ruby-keyword kw">false</span>
100: 
101:         <span class="ruby-comment cmt"># when :method is defined, ActionView adds an onclick to use a form ...</span>
102:         <span class="ruby-comment cmt"># so it's best to just empty out :method whenever possible.</span>
103:         <span class="ruby-comment cmt"># we only ever need to know @method = :get for things that default to POST.</span>
104:         <span class="ruby-comment cmt"># the only things that default to POST are forms and ajax calls.</span>
105:         <span class="ruby-comment cmt"># when @page = true, we don't use ajax.</span>
106:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method</span> = <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">method</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:get</span>
107:       <span class="ruby-keyword kw">end</span>
108:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000430" class="method-detail">
        <a name="M000430"></a>

        <div class="method-heading">
          <a href="#M000430" class="method-signature">
          <span class="method-name">page?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000430-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000430-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 109</span>
109:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page?</span>; <span class="ruby-ivar">@page</span> <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000427" class="method-detail">
        <a name="M000427"></a>

        <div class="method-heading">
          <a href="#M000427" class="method-signature">
          <span class="method-name">popup=</span><span class="method-args">(val)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
a &quot;popup&quot; link displays in a separate (browser?) window. this
will eventually take arguments. exclusive with <a
href="ActionLink.html#M000426">inline?</a> and <a
href="ActionLink.html#M000430">page?</a>
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000427-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000427-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 82</span>
82:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">popup=</span>(<span class="ruby-identifier">val</span>)
83:       <span class="ruby-ivar">@popup</span> = (<span class="ruby-identifier">val</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>)
84:       <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@popup</span>
85:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inline</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">page</span> = <span class="ruby-keyword kw">false</span>
86: 
87:         <span class="ruby-comment cmt"># the :method parameter doesn't mix with the :popup parameter</span>
88:         <span class="ruby-comment cmt"># when/if we start using DHTML popups, we can bring :method back</span>
89:         <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method</span> = <span class="ruby-keyword kw">nil</span>
90:       <span class="ruby-keyword kw">end</span>
91:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000428" class="method-detail">
        <a name="M000428"></a>

        <div class="method-heading">
          <a href="#M000428" class="method-signature">
          <span class="method-name">popup?</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000428-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000428-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 92</span>
92:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">popup?</span>; <span class="ruby-ivar">@popup</span> <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000431" class="method-detail">
        <a name="M000431"></a>

        <div class="method-heading">
          <a href="#M000431" class="method-signature">
          <span class="method-name">position</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000431-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000431-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 123</span>
123:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
124:       <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@position</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@position</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-ivar">@position</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
125:       <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:replace</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:record</span>
126:       <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">:top</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:table</span>
127:       <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;what should the default position be for #{self.type}?&quot;</span>
128:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000424" class="method-detail">
        <a name="M000424"></a>

        <div class="method-heading">
          <a href="#M000424" class="method-signature">
          <span class="method-name">security_method</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000424-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000424-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/data_structures/action_link.rb, line 63</span>
63:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">security_method</span>
64:       <span class="ruby-ivar">@security_method</span> <span class="ruby-operator">||</span> <span class="ruby-node">&quot;#{self.label.underscore.downcase.gsub(/ /, '_')}_authorized?&quot;</span>
65:     <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>